package com.yc.pay.controller;

import com.yc.pay.api.req.PayQueryReq;
import com.yc.pay.api.resp.RespVo;
import com.yc.pay.service.IPaySerialService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TraderQueryController {

    @Autowired
    private IPaySerialService paySerialService;

    /**
     * 业务系统根据 支付流水号或者订单号查询结果
     * @return
     */
    @RequestMapping("/trade/query")
    public RespVo<Object> tradeQuery(PayQueryReq payQueryReq){

        //1.非空判断

        paySerialService.tradeQuery(payQueryReq);


        return null;

    }
}
